package com.isoft.airportsystem.mapper.Flight;

import com.isoft.airportsystem.entity.flight.BaggageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaggageMapper {
    // 根据航班ID查询行李
    List<BaggageInfo> selectByFlightId(@Param("flightId") String flightId);

    // 根据行李标签查询
    BaggageInfo selectByTag(@Param("baggageTag") String baggageTag);

    // 查询行李带上的行李
    List<BaggageInfo> selectByBeltNumber(@Param("beltNumber") String beltNumber);

    // 分页查询行李
    List<BaggageInfo> selectBaggagePage(@Param("offset") int offset,
                                        @Param("limit") int limit,
                                        @Param("baggage") BaggageInfo baggage);

    // 统计行李数量
    int countBaggages(BaggageInfo baggage);

    int insertBaggage(BaggageInfo baggage);
    int updateBaggage(BaggageInfo baggage);
    int deleteBaggage(@Param("id") String id);
}
